#define _CRT_SECURE_NO_WARNINGS
#include "sort.h"

void Test()
{
	int arr[] = { 6, 1, 2, 7, 9, 3, 4, 5, 10, 8, 11 };
	//int arr[] = { 10, 6, 7, 1, 3, 9, 4, 2 }; 
	PrintArray(arr, sizeof(arr) / sizeof(arr[0]));
	//MergeSort(arr, sizeof(arr) / sizeof(arr[0]));
	MergeSortNonR(arr, sizeof(arr) / sizeof(arr[0]));
	PrintArray(arr, sizeof(arr) / sizeof(arr[0]));

	int arr2[] = { 5, 9, 1, 6, 3, 8, 2 };
	PrintArray(arr2, sizeof(arr2) / sizeof(arr2[0]));
	MergeSortNonR(arr2, sizeof(arr2) / sizeof(arr2[0]));
	PrintArray(arr2, sizeof(arr2) / sizeof(arr2[0]));
}

int main()
{
	Test();
	return 0;
}